jQuery.whoiswho = function()
{
	var users = _j('.post .dd .p'),
		len = users.length;
	
	function init()
	{
		for (var i = len; i--;)
		{
			changecolor(_j(users[i]))
		}
	}
	
	function changecolor(user)
	{
		var links = user.find('a'),
			color = user.text().match('Написала') ? "#ff00ea" : "#00f";
		
		links[0].href.match('/users/') ? links[0].style.color = color : links[1].style.color = color;
	}
	
	
	if (len) init();
	
	document.addEventListener("DOMNodeInserted", function(e){
		var obj = _j(e.target); if (obj.hasClass('post')) changecolor(_j(obj));
	}, false);
}

jQuery(document).ready(function(){ 
	jQuery.whoiswho();
});